package usf.gwt.ui.bootstrap.client.event;

import usf.gwt.ui.bootstrap.client.event.SubmitFormEvent.SubmitFormHandler;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.HandlerRegistration;

public class SubmitFormEvent extends GwtEvent<SubmitFormHandler> {

    public static final Type<SubmitFormHandler> type = new Type<SubmitFormHandler>();
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<SubmitFormHandler> getAssociatedType() {
		return type;
	}
	@Override
	protected void dispatch(SubmitFormHandler handler) {
		handler.onSubmit(this);
	}
	
	public static interface SubmitFormHandler extends EventHandler {
		public void onSubmit(SubmitFormEvent handler);
	}
	public static interface HasSubmitFormHandler extends EventHandler {
		public HandlerRegistration addSubmitFormHandler(SubmitFormHandler handler);
	}

}
